package com.woniu.adminservice.service.impl;

import com.woniu.adminservice.dto.AuctionDTO;
import com.woniu.adminservice.feignclient.GoodsInfoFeign;
import com.woniu.adminservice.service.AuctionDataSerivce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Auther: huangjing <br/>
 * Date: 2020/3/24$:15:21$  <br/>
 * Description:
 */
@Service
public class AuctionDataServiceImp implements AuctionDataSerivce {
@Autowired
    GoodsInfoFeign goodsInfoFeign;

    @Override
    public List<AuctionDTO> selectAuctionInfo() {
        List info = goodsInfoFeign.list();
        return info;
    }

    @Override
    public List selectAuctionActive() {
     List  active =   goodsInfoFeign.activeList();
        return active;
    }
}